import { reactive } from "vue";
import type { PaginationProps } from "@pureadmin/table";

export function usePagination(initialTotal = 0) {
  const pagination = reactive<PaginationProps>({
    pageSize: 10,
    currentPage: 1,
    pageSizes: [10, 15, 20],
    total: initialTotal,
    align: "right",
    background: true,
    size: "default",
    layout: "prev, pager, next"
  });
  return pagination;
}
